<!--login.html-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录页</title>
<!--    引用bootstrap    -->
  <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css" crossorigin="anonymous">
    <style>
        .container{
            width: 370px;
            height: 500px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 70px;
            box-shadow: 5px 5px 11px #888888;
        }

    </style>
</head>
<body>
  <div class="container">
<!--  post 方法会将表单数据放在HTTP请求的‌正文（body）‌中发送到服务器，‌不会直接显示在URL‌中。    -->
      <form action="/loginValidate" method="post">
          <div class="form-group">
              <label for="exampleInputEmail1">Email address</label>
              <input type="text" class="form-control" name="username" id="exampleInputEmail1" aria-describedby="emailHelp">
              <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
          </div>
          <div class="form-group">
              <label for="exampleInputPassword1">Password</label>
              <input type="password" class="form-control" name="password" id="exampleInputPassword1">
          </div>
          <div class="form-group">
              <label>选择身份:</label>
              <div class="form-check">
                  <input class="form-check-input" type="radio" name="role" value="1" required>
                  <label class="form-check-label">管理员</label>
              </div>
              <div class="form-check">
                  <input class="form-check-input" type="radio" name="role" value="2" required>
                  <label class="form-check-label">教师</label>
              </div>
              <div class="form-check">
                  <input class="form-check-input" type="radio" name="role" value="3" required>
                  <label class="form-check-label">学生</label>
              </div>
          </div>
          <button type="submit" class="btn btn-primary">Submit</button>
      </form>
  </div>

  <script src="/bootstrap/js/jquery.js" crossorigin="anonymous"></script>
  <script src="/bootstrap/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
</body>
</html>